Skip to content

Restrict method calls on dictionary receivers to an allow-list - #994

Merged
StefH merged 5 commits into
masterfrom
stefh-dictionary-validation
Nov 18, 2026
Merged

StefH merged 5 commits into
masterfrom
stefh-dictionary-validation

Conversation

@StefH

@StefH StefH commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Fix: the dictionary branch now checks the method with a new PredefinedMethodsHelper.IsPredefinedDictionaryMethod, which allows only certain methods. Any other method throws a ParseException with "Method '...' on type '...' is not accessible."

StefH and others added 2 commits November 12, 2026 18:30
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@StefH StefH self-assigned this Nov 12, 2026
@StefH StefH added the security label Nov 12, 2026
@StefH
StefH marked this pull request as ready for review November 17, 2026 21:18
@StefH
StefH merged commit f94a299 into master Nov 18, 2026
4 checks passed
@StefH
StefH deleted the stefh-dictionary-validation branch November 24, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant